package com.stoken.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
public class TypeLineInfo implements Serializable  {
private static final long serialVersionUID = 1L;
    
	/**
	 * ID
	 */
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY) 
	private long id;
	
	@Column(length=50,nullable=false)
	private String lineName;
	
	@Column(length=255,nullable=false)
	private String lineLink;
	
	@ManyToOne
	@JoinColumn(name="line_type",nullable=false)
	private TravelLineType lineType;
	
	/**
	 * 线路出发城市
	 */
	@Column(length=50,nullable=false)
	private String departureCity;
	/**
	 * 发布单位
	 */
	@Column(length=50,nullable=false)
	private String releaseUnit;
	
	/**
	 * 发布时间
	 */
	@Temporal(TemporalType.TIMESTAMP)
	private Date releaseTime;
	
	/**
	 * 市场价格
	 */
	@Column(nullable=false)
	private Double price;
	
	/**
	 * vIP价格
	 */
	@Column(nullable=false)
	private Double vipPrice;
	
	/**
	 * 是否可以报名
	 */
	@Column(nullable=false)
	private int isUse;
	
	private String baseSpare;

	public TravelLineType getLineType() {
		return lineType;
	}

	public void setLineType(TravelLineType lineType) {
		this.lineType = lineType;
	}

	public String getDepartureCity() {
		return departureCity;
	}

	public void setDepartureCity(String departureCity) {
		this.departureCity = departureCity;
	}

	public String getReleaseUnit() {
		return releaseUnit;
	}

	public void setReleaseUnit(String releaseUnit) {
		this.releaseUnit = releaseUnit;
	}

	public Date getReleaseTime() {
		return releaseTime;
	}

	public void setReleaseTime(Date releaseTime) {
		this.releaseTime = releaseTime;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Double getVipPrice() {
		return vipPrice;
	}

	public void setVipPrice(Double vipPrice) {
		this.vipPrice = vipPrice;
	}

	public int getIsUse() {
		return isUse;
	}

	public void setIsUse(int isUse) {
		this.isUse = isUse;
	}

	public String getBaseSpare() {
		return baseSpare;
	}

	public void setBaseSpare(String baseSpare) {
		this.baseSpare = baseSpare;
	}

	public long getId() {
		return id;
	}

	public String getLineName() {
		return lineName;
	}

	public void setLineName(String lineName) {
		this.lineName = lineName;
	}

	public String getLineLink() {
		return lineLink;
	}

	public void setLineLink(String lineLink) {
		this.lineLink = lineLink;
	}

	public void setId(long id) {
		this.id = id;
	}
	
	
	
}
